<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
<head>
	<base href="<%=request.getContextPath()+"/"%>">
	<title>无标题文档</title>
	<link href="css/style.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="js/jquery.js"></script>

	<script type="text/javascript">
		$(document).ready(function() {
			$(".click").click(function() {
				$(".tip").fadeIn(200);
			});
			$(".tiptop a").click(function() {
				$(".tip").fadeOut(200);
			});
			$(".sure").click(function() {
				$(".tip").fadeOut(100);
			});
			$(".cancel").click(function() {
				$(".tip").fadeOut(100);
			});
		});
	</script>

</head>

<body>

	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="#">报销管理</a></li>
			<li><a href="#">我的报销</a></li>
		</ul>
	</div>

	<div class="rightinfo">

		<div class="formtitle1"><span>我的报销</span></div>

		<table class="tablelist">
			<thead>
				<tr>
					<th>
						<input name="" type="checkbox" value="" checked="checked" />
					</th>
					<th>编号</th>
					<th>报销总额</th>
					<th>报销时间</th>
					<th>总备注信息</th>
					<th>查看具体报销项</th>
					<th>查看所附图片</th>
					<th>状态</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
			<c:forEach items="${requestScope.myExpense}" var="list">
				<tr>
					<td><input type="checkbox" /></td>
					<td>${list.expId}</td>
					<td>${list.totalAmount}</td>
					<td><fmt:formatDate value="${list.expTime}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
					<td>${list.expDesc}</td>
					<td><a href="ptu/ExpenseItemServlet?method=showExpenseItems&expId=${list.expId}" class="tablelink">查看具体报销项</a></td>
					<td><a href="ptu/ExpImageServlet?method=showImages&expid=${list.expId}" class="tablelink">查看所附图片</a></td>
					<c:if test="${list.status == 0}">
						<td>新创建</td>
					</c:if>
					<c:if test="${list.status == 1}">
						<td>审核中</td>
					</c:if>
					<c:if test="${list.status == 2}">
						<td>审核结束通过</td>
					</c:if>
					<c:if test="${list.status == 3}">
						<td>审核拒绝</td>
					</c:if>
					<c:if test="${list.status == 4}">
						<td>审核打回</td>
					</c:if>
					<c:if test="${list.status == 5}">
						<td>已打款</td>
					</c:if>
					<td>
						<c:if test="${list.status == 0}">
							<a href="ptu/ExpenseServlet?method=delExpense&expId=${list.expId}" class="tablelink">删除</a>
						</c:if>

						<c:if test="${list.status != 0 && list.status != 1}">
							<a href="ptu/AuditingServlet?method=showAuditing&expId=${list.expId}" class="tablelink">查看审核记录</a>
						</c:if>
					</td>
				</tr>
			</c:forEach>
			</tbody>
		</table>

	</div>

	<script type="text/javascript">
		$('.tablelist tbody tr:odd').addClass('odd');
	</script>

</body>

</html>